﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Security.Cryptography;
using KL.UFrame.Data.Entities;

namespace KL.UFrame.Data.Models
{
    public class CurdModel
    {
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "Id")]
        public int Id { get; set; }

        [Display(Name = "状态")]
        public bool Enabled { get; set; }
        
        public string CreateId { get; set; }

        [Display(Name = "创建人")]
        public string CreateUser { get; set; }

        [Display(Name = "创建时间")]
        public DateTime CreateTime { get; set; }

        [Display(Name = "更新人Id")]
        public string UpdateId { get; set; }

        [Display(Name = "更新人")]
        public string UpdateUser { get; set; }

        [Display(Name="更新时间")]
        public DateTime? UpdateTime { get; set; }
    }
}